ColorCount
Returns
information of the imaG image color at a
specific color count mode.
Syntax: | imaG.ColorCount (mode , color) |
mode | See caColorCountModeConstants |
color (OLE_COLOR) | OPTIONAL - Determines the color in the image to obtain the information. |
Returns: (long) | Color information. |
MODE
caColorCountColor = 0 with color = -1 | Counts the number of colors in a imaG's image. |
caColorCountColor = 0 with color = OLE_COLOR | Counts the number of times the color value is used in a imaG's image at a specific color value. |
caColorCountMax = 1 | Counts the maximum number of times a color is used in a PicctureX's image and returns the color value. |
caColorCountMin | Counts the minimum number of times a color is used in a imaG's image and returns the color value. |
See also ColorDepth , Color & Palettes , GetPalColorCount